<?
function ShowConfTable() {
echo"<table width=\"500\" border=\"0\" cellspacing=\"2\" cellpadding=\"4\" align=\"center\" class=\"normal\">";

        echo"<tr bgcolor=\"#CCCCCC\">";
          echo"<td colspan=\"4\" class=\"titre2\">$msgStats</td>";
        echo"</tr>";
        echo"<tr>";
          echo"<td>&nbsp;</td>";
          echo"<td class=\"normal\" bgcolor=\"#CCCCCC\">";
            echo"<div align=\"center\"><b>$msgDay</b></div>";
          echo"</td>";
          echo"<td class=\"normal\" bgcolor=\"#CCCCCC\">";
            echo"<div align=\"center\"><b>$msgWeek</b></div>";
          echo"</td>";
          echo"<td class=\"normal\" bgcolor=\"#CCCCCC\">";
            echo"<div align=\"center\"><b>$msgMonth</b></div>";
          echo"</td>";
        echo"</tr>";

$sta = true;
while ($bar=each($sites)) {
        if ($sta) { $color = "#CCCCFF" ; } else { $color = "#FFFFCC" ;}
        echo"<tr bgcolor=$color>";
          echo"<td width=\"300\"><a href=\"http://".$bar[1]."\" target=\"_blank\">$bar[1]</a></td>";
          echo"<td width=\"80\">";
            echo"<div align=\"center\"><a href=\"index2.php?table=$bar[0]&reqdate=".time()."&reset=0&period=jour\">stats</a></div>";
          echo"</td>";
          echo"<td width=\"80\">";
            echo"<div align=\"center\"><a href=\"index2.php?table=$bar[0]&reqdate=".time()."&reset=0&period=semaine\">stats</a></div>";
          echo"</td>";
          echo"<td width=\"80\">";
            echo"<div align=\"center\"><a href=\"index2.php?table=$bar[0]&reqdate=".time()."&reset=0&period=mois\">stats</a></div>";
          echo"</td>";
        echo"</tr>";
        $sta = !$sta;
}  // end for i loop
echo"</table>";

}

?>